<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  

<t:wrapper>
    <jsp:body> 
    	<p>Vos absences...</p>
    	<p></p>
    	<ul>
    		<c:forEach var="absence" items="${sessionScope['user'].absences}">
    		    <li>
    		    <c:choose>
    		    	<c:when test="${absence.justify}">
    		    		Absence justifiée : 
    		    	</c:when>
    		    	<c:otherwise>
    		    		Absence non justifiée : 
    		    	</c:otherwise>
    		    </c:choose>
    		    Le ${absence.lesson.readableStartHour}, cours de ${absence.lesson.subject.name} avec ${absence.lesson.teacher.lastname} ${absence.lesson.teacher.firstname}
    		    <c:if test="${absence.justify}">
    		    	<br />
    		    	Justification : <em>${absence.justification}</em> (niveau ${absence.levelJustification})
    		    </c:if>
    		    </li>
    		</c:forEach>
    	</ul>
	</jsp:body>
</t:wrapper>